Guard and Continuation Optimization for Occurrence Representations of CHR

نویسندگان

  • Jon Sneyers
  • Tom Schrijvers
  • Bart Demoen
چکیده

Constraint Handling Rules (CHR) is a high-level rule-based language extension, commonly embedded in Prolog. We introduce a new occurrence representation of CHR programs, and a new operational semantics for occurrence representations, equivalent to the widely implemented refined operational semantics. The occurrence representation allows in a natural way to express guard and continuation optimizations, which remove redundant guards and eliminate redundant code for subsumed occurrences. These optimizations allow CHR programmers to write self-documented rules with a clear logical reading. We show correctness of both optimizations, present an implementation in the K.U.Leuven CHR compiler, and discuss speedup measurements.

منابع مشابه

Guard Reasoning for CHR Optimization

Constraint Handling Rules (CHR) is a high-level language commonly used to write constraint solvers. Most CHR programs depend on the refined operational semantics, resulting in an obfuscated logical reading and potential misbehavior under the theoretical operational semantics. We introduce two source to source transformations: guard simplification and occurrence subsumption. By removing redundan...

متن کامل

Guard Simplification in CHR programs

Constraint Handling Rules (CHR) is a high-level language commonly used to write constraint solvers. Most CHR programs depend on the refined operational semantics, resulting in an obfuscated logical reading and non-termination or worse under the theoretical operational semantics. We introduce a source to source transformation called guard simplification which allows CHR programmers to write self...

متن کامل

Hydrothermal Optimal Power Flow Using Continuation Method

The problem of optimal economic operation of hydrothermal electric power systems is solved using powerful continuation method. While in conventional approach, fixed generation voltages are used to avoid convergence problems, in the proposed algorithm, they are treated as variables so that better solutions can be obtained. The algorithm is tested for a typical 5-bus and 17-bus New Zealand networ...

متن کامل

Prioritizing the Impacts of Drought on Economic, Social and Environmental Dimensions in Urban and Rural Areas (Case Study of Yazd Province)

Introduction Iran is seriously suffering from economic and social drought. Theoretically, this problem can be resolved by rebalancing the supply and demand of water through the development of supplied water resources and implementing serious water demand reduction programs. However, the current structure of Iranchr(chr(chr(chr(chr('39')39chr('39'))39chr(chr('39')39chr('39')))39chr(chr(chr('39...

متن کامل

آسیب‌شناسی میراث زبانی از طریق بازشناسی جایگاه و عملکرد آن در میراث فرهنگی

In international contexts, Intangible heritage is divided into five groups. First one is the oral traditions and expressions, including language. And also the important function of language is known as a vehicle for intangible heritage. Recognizing language in the field of intangible heritage, some languages and linguistic patterns such as the skill of storytelling, minstrelsy and songs are ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

متن کامل
عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2005